# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Article',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('title', models.CharField(max_length=100, verbose_name=b'\xe6\xa0\x87\xe9\xa2\x98')),
                ('author', models.CharField(max_length=50, verbose_name=b'\xe4\xbd\x9c\xe8\x80\x85')),
                ('digest', models.CharField(max_length=150, verbose_name=b'\xe6\x91\x98\xe8\xa6\x81')),
                ('img', models.ImageField(max_length=150, upload_to=b'', null=True, verbose_name=b'\xe4\xb8\xbb\xe5\x9b\xbe', blank=True)),
                ('from_url', models.URLField(max_length=100, null=True, verbose_name=b'\xe6\x9d\xa5\xe6\xba\x90', blank=True)),
                ('content', models.TextField(verbose_name=b'\xe5\x86\x85\xe5\xae\xb9')),
            ],
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=50)),
                ('desc', models.CharField(max_length=100, null=True, blank=True)),
                ('parent', models.ForeignKey(verbose_name=b'\xe7\x88\xb6\xe7\xba\xa7\xe7\xb1\xbb\xe7\x9b\xae', blank=True, to='cms.Category', null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=35, verbose_name=b'\xe5\x90\x8d\xe7\xa7\xb0')),
                ('color', models.CharField(default=b'Aqua', max_length=10, verbose_name=b'\xe9\xa2\x9c\xe8\x89\xb2', choices=[(b'green', b'green'), (b'blue', b'blue'), (b'red', b'red'), (b'gray', b'gray'), (b'Aqua', b'Aqua')])),
            ],
        ),
        migrations.AddField(
            model_name='article',
            name='tags',
            field=models.ManyToManyField(to='cms.Tag'),
        ),
    ]
